package com.cwf.system.service;

import com.cwf.system.entity.UserPermissionRelation;
import com.cwf.system.validation.role.AllotRolePermissionParams;
import com.cwf.system.vo.PermissionTreeVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (UserPermissionRelation)表服务接口
 *
 * @author makejava
 * @since 2023-02-25 17:28:20
 */
public interface UserPermissionRelationService {



    /**
     * 获取当前用户权限id列表
     * @param id 角色id
     * @return
     */
    List<Long> getUserPermissionIdList(Long id);



    boolean allotUserPermission(AllotRolePermissionParams params);


    List<Long> treeSelect(Long roleId);

}
